package com.zhonghui.dc.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 智造双碳—双碳管理—能耗数据采集对象 dc_energy_consumption
 * 
 * @author qiezi
 * @date 2023-12-25
 */
public class DcEnergyConsumption extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 已产数量 */
    @Excel(name = "已产数量")
    private Long quantityProduced;

    /** 单位耗电量 */
    @Excel(name = "单位耗电量")
    private Long unitPowerConsumption;

    /** 总耗电量 */
    @Excel(name = "总耗电量")
    private Long powerConsumption;

    /** 单位碳排放 */
    @Excel(name = "单位碳排放")
    private Long unitCarbonEmissions;

    /** 总碳排放 */
    @Excel(name = "总碳排放")
    private Long powerCarbonEmission;

    /** 上报日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上报日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setQuantityProduced(Long quantityProduced) 
    {
        this.quantityProduced = quantityProduced;
    }

    public Long getQuantityProduced() 
    {
        return quantityProduced;
    }
    public void setUnitPowerConsumption(Long unitPowerConsumption) 
    {
        this.unitPowerConsumption = unitPowerConsumption;
    }

    public Long getUnitPowerConsumption() 
    {
        return unitPowerConsumption;
    }
    public void setPowerConsumption(Long powerConsumption) 
    {
        this.powerConsumption = powerConsumption;
    }

    public Long getPowerConsumption() 
    {
        return powerConsumption;
    }
    public void setUnitCarbonEmissions(Long unitCarbonEmissions) 
    {
        this.unitCarbonEmissions = unitCarbonEmissions;
    }

    public Long getUnitCarbonEmissions() 
    {
        return unitCarbonEmissions;
    }
    public void setPowerCarbonEmission(Long powerCarbonEmission) 
    {
        this.powerCarbonEmission = powerCarbonEmission;
    }

    public Long getPowerCarbonEmission() 
    {
        return powerCarbonEmission;
    }
    public void setReportDate(Date reportDate) 
    {
        this.reportDate = reportDate;
    }

    public Date getReportDate() 
    {
        return reportDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceName", getDeviceName())
            .append("quantityProduced", getQuantityProduced())
            .append("unitPowerConsumption", getUnitPowerConsumption())
            .append("powerConsumption", getPowerConsumption())
            .append("unitCarbonEmissions", getUnitCarbonEmissions())
            .append("powerCarbonEmission", getPowerCarbonEmission())
            .append("reportDate", getReportDate())
            .toString();
    }
}
